package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.PaymentBill;
import cn.wolfcode.crm.query.PageResult;
import cn.wolfcode.crm.query.PaymentBillQueryObject;

import java.util.Date;
import java.util.List;

public interface IPaymentBillService {
    int deleteByPrimaryKey(Long id);

    int insert(PaymentBill record);

    PaymentBill selectByPrimaryKey(Long id);

    List<PaymentBill> selectAll();

    int updateByPrimaryKey(PaymentBill record);

    PageResult query(PaymentBillQueryObject qo);

    /**
     * 缴费功能实现
     * @param id 当前缴费人员的id
     * @param begindate 缴费人员的起保时间
     * @param payWayId 缴费的支付方式
     */
    void pay(Long id, Date begindate, Long payWayId);
}
